<IfModule mod_rewrite.c>
RewriteEngine On 
RewriteRule ^browse/videos/(.*)/(.*)/(.*)/(.*) /videos.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^browse/videoseries/(.*)/(.*)/(.*)/(.*) /videoseries.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^browse/channels/(.*)/(.*)/(.*)/(.*) /channels.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^browse/members/(.*)/(.*)/(.*)/(.*) /members.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^search/(.*)/(.*)/(.*)/(.*) /search.php?searchfor=$1&sortby=$2&page=$3&searchterm=$4
RewriteRule ^browse/categories/videos/(.*)/(.*)/(.*)/(.*) /categoryvideos.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^browse/categories/channels/(.*)/(.*)/(.*)/(.*) /categorychannels.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^videos/(.*)/(.*) /playvideo.php?videoid=$1&title=$2
RewriteRule ^channels/(.*)/(.*) /channeldetails.php?cid=$1&title=$2
RewriteRule ^confirmemail/(.*) /confirmemail.php?code=$1
RewriteRule ^resetpassword/(.*) /resetpassword.php?code=$1
RewriteRule ^resendconfirmation/(.*) /resendconfirmation.php?userid=$1
RewriteRule ^members/profile/(.*)/(.*) /memberprofile.php?pid=$1&username=$2
RewriteRule ^members/videos/(.*)/(.*) /membervideos.php?pid=$1&username=$2
RewriteRule ^members/channels/(.*)/(.*) /memberchannels.php?pid=$1&username=$2
RewriteRule ^members/comments/(.*)/(.*) /membercomments.php?pid=$1&username=$2
RewriteRule ^members/favorites/(.*)/(.*) /memberfavorites.php?pid=$1&username=$2
RewriteRule ^members/subscribers/(.*)/(.*) /membersubscribers.php?pid=$1&username=$2
RewriteRule ^members/friends/(.*)/(.*) /memberfriends.php?pid=$1&username=$2
RewriteRule ^members/series/(.*)/(.*) /memberseries.php?pid=$1&username=$2
RewriteRule ^videoseries/(.*)/(.*) /seriesdetails.php?seriesid=$1&name=$2
RewriteRule ^syndicate/videos/(.*)/(.*) /syndicatevideos.php?filter=$1&title=$2
RewriteRule ^syndicate/categoryvideos/(.*)/(.*) /syndicatecategoryvideos.php?filter=$1&title=$2
RewriteRule ^syndicate/videoseries/(.*)/(.*) /syndicatevideoseries.php?filter=$1&title=$2
RewriteRule ^syndicate/channels/(.*)/(.*) /syndicatechannels.php?filter=$1&title=$2
RewriteRule ^syndicate/categorychannels/(.*)/(.*) /syndicatecategorychannels.php?filter=$1&title=$2
RewriteRule ^syndicate/members/(.*)/(.*) /syndicatemembers.php?filter=$1&title=$2
RewriteRule ^download/video/(.*)/(.*) /downloadvideo.php?VIDEOID=$1&title=$2
RewriteRule ^share/video/(.*) /sharevideo.php?videoid=$1
RewriteRule ^comments/videos/(.*)/(.*) /videocomments.php?videoid=$1&title=$2
RewriteRule ^([-_~*a-zA-Z0-9]+)(\/)?$ channeldetails.php?key=$1
RewriteRule ^browse/pictures/(.*)/(.*)/(.*)/(.*) /pictures.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^browse/categories/pictures/(.*)/(.*)/(.*)/(.*) /categorypictures.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^pictures/(.*)/(.*) /viewpicture.php?pictureid=$1&title=$2
RewriteRule ^download/picture/(.*)/(.*) /downloadpicture.php?PICTUREID=$1&title=$2
RewriteRule ^members/pictures/(.*)/(.*) /memberpictures.php?pid=$1&username=$2
RewriteRule ^syndicate/pictures/(.*)/(.*) /syndicatepictures.php?filter=$1&title=$2
RewriteRule ^syndicate/categorypictures/(.*)/(.*) /syndicatecategorypictures.php?filter=$1&title=$2
RewriteRule ^comments/pictures/(.*)/(.*) /picturecomments.php?pictureid=$1&title=$2
RewriteRule ^browse/audios/(.*)/(.*)/(.*)/(.*) /audios.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^browse/categories/audios/(.*)/(.*)/(.*)/(.*) /categoryaudios.php?sortby=$1&filter=$2&page=$3&title=$4
RewriteRule ^audios/(.*)/(.*) /playaudio.php?audioid=$1&title=$2
RewriteRule ^download/audio/(.*)/(.*) /downloadaudio.php?AUDIOID=$1&title=$2
RewriteRule ^members/audios/(.*)/(.*) /memberaudios.php?pid=$1&username=$2
RewriteRule ^syndicate/audios/(.*)/(.*) /syndicateaudios.php?filter=$1&title=$2
RewriteRule ^syndicate/categoryaudios/(.*)/(.*) /syndicatecategoryaudios.php?filter=$1&title=$2
RewriteRule ^comments/audios/(.*)/(.*) /audiocomments.php?audioid=$1&title=$2
</IfModule>

<IfModule mod_security.c> 
   # Turn off mod_security filtering. 
   SecFilterEngine Off 

   # The below probably isn't needed, 
   # but better safe than sorry. 
   SecFilterScanPOST Off 
</IfModule>
